<?php

namespace app\logic\index;

class L_articleType
{
    /**
     * 读取列表并排序
     * @param string $paramObj
     */
    public function getList($paramObj = "")
    {
        $dataObj = paramsObj();
        $dataObj->request = paramsObj();
        $dataObj->data = paramsObj();
        $dataObj->data->use_trans = false;
        $dataObj->result = new \ArrayObject();

        $final_arr = logInit();


        if ($final_arr["error_no"] == 0) {
            $paramsObj = paramsObj();
            $paramsObj->mixed  = parseToArr($paramObj, "mixed", 0); //获取是否混合数据 1混合 0 只用默认
            $paramsObj->params = parseToArr($paramObj, "params", array());//  参数
            $paramsObj->params["disabled"]=1;
            $singlePageResult = app("S_Index_articleType")->getList($paramsObj);
            if ($singlePageResult["error_no"] == 0) {
                $result = $singlePageResult["result"];

                $final_arr["result"] = $result;
            } else {
                $final_arr = logCallErrorMsg($final_arr, $singlePageResult);
            }
        }

        return $final_arr;
    }

}